from user import User

class Privileges:
	"""权限"""
	def __init__(self, admin):
		self.privileges = ['can add post', 'can delete post', 'can ban user']
		self.admin = admin

	def show_privileges(self) :
		self.admin.dscribe()
		for privilege in self.privileges:
			print(f"\t - {privilege}")

class Admin(User):
	""" 管理员"""
	def __init__(self, fist_name, last_name):
		super().__init__(fist_name, last_name)
		self.privileges = Privileges(self)

